user_data = ["ljh", "ppp", "fyq", "zjm"] # 全部用户

password_data = "333" # 密码统一333

user_data_vip = ["ljh", "zjm"] # vip列表

# 会员用户能查看5次，非会员用户只能3次。

# 登录错误次数最多为3。

import datetime
time = datetime.datetime.today().weekday()
# 登录次数3

count = 3
while True:
    count = count-1 # 每输一次减一次

    user_name = input("登录账号：")
    pass_word = input("登录密码：")
    # 1. 判断账号

    if user_name in user_data:
        if user_name in user_data and user_name in user_data_vip:
            if pass_word == password_data:
                count = 5
                while True:
                    count -= 1
                    print("您是会员。")
                    print("您还有", count, "次查看机会")
                    week_time = int(time)
                    # week_time

                    if week_time == 1:
                        print("周一没有课")
                    elif week_time == 2:
                        print("1-2大英");
                        print("8-9毛概实践")
                    elif week_time == 3:
                        print("3-5excel数据基础");
                        print("12-14创业实践");
                    elif week_time == 4:
                        print("1-2定向越野");
                        print("3-5python");
                        print("8-9大英")
                    elif week_time == 5:
                        print("3-5网站运营与管理");
                    else:
                        print("周末休息")
                    break
            else:
                if count == 0:
                    print("你都输三次了，怎么还是错的，5分钟后再来吧")
                    break
                else:
                    print("您输入的账号或者密码不正确，请重新输入，您还有", count, "次机会~加油